import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
import {RouterModule} from "@angular/router";
import {LazyLoadImageModule} from "ng-lazyload-image";
import {InfiniteScrollModule} from "ngx-infinite-scroll";
import {MomentModule} from "angular2-moment";
import {SubmitButtonComponent} from "@shared/components/submit-button/submit-button.component";
import {SHARED_COMPONENTS} from "@shared/components";
import {SHARED_PIPES} from "@shared/pipes/shared.pipe";
import {SHARED_SERVICE} from "@shared/service";
import {SHARED_DIRECRIVES} from "@shared/directives";
import { RecommendGoodsComponent } from './components/list/recommend-goods/recommend-goods.component';



@NgModule({
  imports: [
    CommonModule,
    FormsModule,
    RouterModule,
    LazyLoadImageModule,
    InfiniteScrollModule,
    MomentModule,
    ReactiveFormsModule
  ],
  declarations: [
    ...SHARED_DIRECRIVES,
    ...SHARED_COMPONENTS,
    ...SHARED_PIPES,
    RecommendGoodsComponent,
   ],
  exports: [
    CommonModule,
    FormsModule,
    LazyLoadImageModule,
    InfiniteScrollModule,
    MomentModule,
    SubmitButtonComponent,
    ...SHARED_COMPONENTS,
    ...SHARED_DIRECRIVES,
    ...SHARED_PIPES
  ],
  providers: [
    ...SHARED_SERVICE
  ]
})
export class SharedModule { }



